import React from 'react'
import ReactDOM from 'react-dom'
// import { createRoot } from 'react-dom/client'
import { Provider } from 'react-redux'
// 导入 store
import store from './store'
// 全局导入 antd 组件的样式
import 'antd/dist/antd.css'
// 中文设置
import { ConfigProvider } from 'antd'
import 'moment/locale/zh-cn'
import locale from 'antd/lib/locale/zh_CN'

import './index.scss'
import { App } from './App'

ReactDOM.render(
  <Provider store={store}>
    <ConfigProvider locale={locale}>
      <App></App>
    </ConfigProvider>
  </Provider>,
  document.getElementById('root')
)

// const root = ReactDOM.createRoot(document.querySelector('#root'))
// root.render(
//   <Provider store={store}>
//     <ConfigProvider locale={locale}>
//       <App></App>
//     </ConfigProvider>
//   </Provider>
// )
